package com.lorianknights.rpg.core
{
	
	import com.lorianknights.rpg.utils.Constants;
	import flash.utils.getDefinitionByName;
	
	public class ClientVars extends Object
	{
		
		public static var DEBUG_MODE:Boolean = false;
		public static var PRIMARY_CLIENT:String = Constants.PRIMARY_CLIENT;
		
		public function ClientVars(client:String, debuggable:Boolean = false)
		{
			
			super();
			this.strClientFile = client;
			this.IS_DEBUG_MODE = debuggable;
			
		}
		
		public function get IS_DEBUG_MODE():Boolean
		{
			
			return this.DEBUG_MODE;
		}
		
		public function set IS_DEBUG_MODE(bool:Boolean):void
		{
			
			this.DEBUG_MODE = bool;
			
		}
		
		public function get strClientFile():String
		{
			
			return this.PRIMARY_CLIENT;
			
		}
		
		public function set strClientFile(str:String):void
		{
			
			this.PRIMARY_CLIENT = getDefinitionByName(str) as Class;
			
		}
	}
}